package com.robotserver.orders;

import com.robotserver.orders.common.DateUtil;
import com.robotserver.orders.vo.TbkOrderTimeVO;
import com.vip.osp.sdk.util.StringUtils;

import java.util.List;

/**
 * @author liuqi
 * @date 2021年07月08日 17:33
 */
public class TbOrdersRefund extends Thread{

    public void run() {
        Integer starttime = DateUtil.getTime(StringUtils.parseDateTime("2021-07-06 12:48:15"));

        Integer endtime = DateUtil.getTime(StringUtils.parseDateTime("2021-07-07 12:48:15"));

        List<TbkOrderTimeVO> tbkOrderTimeVOList = DateUtil.getTbkOrderRefundTimeScope(starttime,endtime);

        for (TbkOrderTimeVO tbkOrderTimeVO: tbkOrderTimeVOList) {
            System.out.println(tbkOrderTimeVO.getBeginTime()+"::" + tbkOrderTimeVO.getEndTime());
        }
    }

    public static void main(String[] args) {
            for (int i  =1 ;1<10; i++){
                TbOrdersRefund mThread1 = new TbOrdersRefund();
                mThread1.start();
            }

    }
}
